﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ThreeByte.ActiveDeck.AddIn.Controls.Wizard.Controls
{
    /// <summary>
    /// Interaction logic for SimpleDialog.xaml
    /// </summary>
    public partial class SimpleDialog : UserControl
    {
        public SimpleDialog() {
            InitializeComponent();
        }

        public static readonly DependencyProperty MessageProperty = DependencyProperty.Register("Message", typeof(string), typeof(SimpleDialog));

        public string Message {
            get {
                return (string)GetValue(MessageProperty);
            }
            set {
                SetValue(MessageProperty, value);
            }
        }

        public static readonly DependencyProperty AlternateActionProperty = DependencyProperty.Register("AlternateAction", typeof(string), typeof(SimpleDialog));

        public string AlternateAction {
            get {
                return (string)GetValue(AlternateActionProperty);
            }
            set {
                SetValue(AlternateActionProperty, value);
            }
        }

        public event EventHandler AlternateClicked;
        public event EventHandler NextClicked;

        private void Alternate_Click(object sender, RoutedEventArgs e) {
            if(AlternateClicked != null) {
                AlternateClicked(this, EventArgs.Empty);
            }
        }

        private void Next_Click(object sender, RoutedEventArgs e) {
            if(NextClicked != null) {
                NextClicked(this, EventArgs.Empty);
            }
        }
    }
}
